package cn.com.inossem.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class UserInfo implements Parcelable, Serializable {

	/**
	 * 用户id
	 */
	private int id;
	/**
	 * 收藏个数
	 */
	private String collectNum = "0";
	/**
	 * 申请个数
	 */
	private String applyNum = "0";
	/**
	 * 好友个数
	 */
	private String friendNum = "0";
	/**
	 * 消息个数
	 */
	private String infoNum = "0";
	/**
	 * 用户登录名称
	 */
	private String username;
	/**
	 * 用户登录密码
	 */
	private String password;
	/**
	 * 用户的昵称
	 */
	private String nickname;
	/**
	 * 用户的真实姓名
	 */
	private String truename = "";
	/**
	 * 用户的邮件
	 */
	private String email = "";
	/**
	 * 用户的联系电话
	 */
	private String phone;
	/**
	 * 用户的状态：0表示停用，1表示启用
	 */
	private int status;
	/**
	 * 项目状态
	 */
	private int projectStatus = 0;
	/**
	 * 项目地点
	 */
	private int projectAddress = 0;
	/**
	 * 家庭地点
	 */
	private int homeAddress = 0;

	/**
	 * 工作年限
	 */
	private String workYear;
	/**
	 * sap工作年限
	 */
	private String sapYear;
	/**
	 * 年龄
	 */
	private String age;

	/**
	 * 个人简介
	 */
	private String summary;
	/**
	 * 照片 BASE64
	 */
	private String image;
	/**
	 * 项目结束时间
	 */
	private String projectEndDate;

	/**
	 * 行业
	 */
	private String industry = "";
	/**
	 * 用户背景str
	 */
	private String strUserBg;
	/**
	 * 用户技能str
	 */
	private String strUserSkill;

	private String strUserEducation;// 教育

	private String strProjectExp;// 项目经验

	private String imageData = "";

	private int isselected = 0;

	private String messageNum = "0";

	private String sex = "";

	private String birthday = "";

	List<SkillsInfoBean> userSkill = new ArrayList<SkillsInfoBean>();

	List<EducationInfoBean> userEducation = new ArrayList<EducationInfoBean>();
	private String bankType = "";
	private String bankAccount = "";

	public String getBankType() {
		return bankType;
	}

	public void setBankType(String bankType) {
		this.bankType = bankType;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public int getIsselected() {
		return isselected;
	}

	public void setIsselected(int isselected) {
		this.isselected = isselected;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCollectNum() {
		return collectNum;
	}

	public void setCollectNum(String collectNum) {
		this.collectNum = collectNum;
	}

	public String getApplyNum() {
		return applyNum;
	}

	public void setApplyNum(String applyNum) {
		this.applyNum = applyNum;
	}

	public String getFriendNum() {
		return friendNum;
	}

	public void setFriendNum(String friendNum) {
		this.friendNum = friendNum;
	}

	public String getInfoNum() {
		return infoNum;
	}

	public void setInfoNum(String infoNum) {
		this.infoNum = infoNum;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getTruename() {
		return truename;
	}

	public void setTruename(String truename) {
		this.truename = truename;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getProjectStatus() {
		return projectStatus;
	}

	public void setProjectStatus(int projectStatus) {
		this.projectStatus = projectStatus;
	}

	public int getProjectAddress() {
		return projectAddress;
	}

	public void setProjectAddress(int projectAddress) {
		this.projectAddress = projectAddress;
	}

	public int getHomeAddress() {
		return homeAddress;
	}

	public void setHomeAddress(int homeAddress) {
		this.homeAddress = homeAddress;
	}

	public String getWorkYear() {
		return workYear;
	}

	public void setWorkYear(String workYear) {
		this.workYear = workYear;
	}

	public String getSapYear() {
		return sapYear;
	}

	public void setSapYear(String sapYear) {
		this.sapYear = sapYear;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getProjectEndDate() {
		return projectEndDate;
	}

	public void setProjectEndDate(String projectEndDate) {
		this.projectEndDate = projectEndDate;
	}

	public String getIndustry() {
		return industry;
	}

	public void setIndustry(String industry) {
		this.industry = industry;
	}

	public String getStrUserBg() {
		return strUserBg;
	}

	public void setStrUserBg(String strUserBg) {
		this.strUserBg = strUserBg;
	}

	public String getStrUserSkill() {
		return strUserSkill;
	}

	public void setStrUserSkill(String strUserSkill) {
		this.strUserSkill = strUserSkill;
	}

	public String getStrUserEducation() {
		return strUserEducation;
	}

	public void setStrUserEducation(String strUserEducation) {
		this.strUserEducation = strUserEducation;
	}

	public String getStrProjectExp() {
		return strProjectExp;
	}

	public void setStrProjectExp(String strProjectExp) {
		this.strProjectExp = strProjectExp;
	}

	public String getImageData() {
		return imageData;
	}

	public void setImageData(String imageData) {
		this.imageData = imageData;
	}

	public String getMessageNum() {
		return messageNum;
	}

	public void setMessageNum(String messageNum) {
		this.messageNum = messageNum;
	}

	public List<SkillsInfoBean> getUserSkill() {
		return userSkill;
	}

	public void setUserSkill(List<SkillsInfoBean> userSkill) {
		this.userSkill = userSkill;
	}

	public List<EducationInfoBean> getUserEducation() {
		return userEducation;
	}

	public void setUserEducation(List<EducationInfoBean> userEducation) {
		this.userEducation = userEducation;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(this.id);
		dest.writeString(this.collectNum);
		dest.writeString(this.applyNum);
		dest.writeString(this.friendNum);
		dest.writeString(this.infoNum);
		dest.writeString(this.username);
		dest.writeString(this.password);
		dest.writeString(this.nickname);
		dest.writeString(this.truename);
		dest.writeString(this.email);
		dest.writeString(this.phone);
		dest.writeInt(this.status);
		dest.writeInt(this.projectStatus);
		dest.writeInt(this.projectAddress);
		dest.writeInt(this.homeAddress);
		dest.writeString(this.workYear);
		dest.writeString(this.sapYear);
		dest.writeString(this.age);
		dest.writeString(this.summary);
		dest.writeString(this.image);
		dest.writeString(this.projectEndDate);
		dest.writeString(this.industry);
		dest.writeString(this.strUserBg);
		dest.writeString(this.strUserSkill);
		dest.writeString(this.strUserEducation);
		dest.writeString(this.strProjectExp);
		dest.writeString(this.imageData);
		dest.writeInt(this.isselected);
		dest.writeString(this.messageNum);
		dest.writeString(this.sex);
		dest.writeString(this.birthday);
		dest.writeTypedList(this.userSkill);
		dest.writeTypedList(this.userEducation);
		dest.writeString(this.bankType);
		dest.writeString(this.bankAccount);
	}

	public UserInfo() {
	}

	protected UserInfo(Parcel in) {
		this.id = in.readInt();
		this.collectNum = in.readString();
		this.applyNum = in.readString();
		this.friendNum = in.readString();
		this.infoNum = in.readString();
		this.username = in.readString();
		this.password = in.readString();
		this.nickname = in.readString();
		this.truename = in.readString();
		this.email = in.readString();
		this.phone = in.readString();
		this.status = in.readInt();
		this.projectStatus = in.readInt();
		this.projectAddress = in.readInt();
		this.homeAddress = in.readInt();
		this.workYear = in.readString();
		this.sapYear = in.readString();
		this.age = in.readString();
		this.summary = in.readString();
		this.image = in.readString();
		this.projectEndDate = in.readString();
		this.industry = in.readString();
		this.strUserBg = in.readString();
		this.strUserSkill = in.readString();
		this.strUserEducation = in.readString();
		this.strProjectExp = in.readString();
		this.imageData = in.readString();
		this.isselected = in.readInt();
		this.messageNum = in.readString();
		this.sex = in.readString();
		this.birthday = in.readString();
		this.userSkill = in.createTypedArrayList(SkillsInfoBean.CREATOR);
		this.userEducation = in.createTypedArrayList(EducationInfoBean.CREATOR);
		this.bankType = in.readString();
		this.bankAccount = in.readString();
	}

	public static final Creator<UserInfo> CREATOR = new Creator<UserInfo>() {
		@Override
		public UserInfo createFromParcel(Parcel source) {
			return new UserInfo(source);
		}

		@Override
		public UserInfo[] newArray(int size) {
			return new UserInfo[size];
		}
	};
}
